package com.getsendsocial.GetSendSocial.Database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class GSDbHelper extends SQLiteOpenHelper { //classe che ci aiuta nella creazione del db

    public GSDbHelper(Context context, String name, CursorFactory factory,int version) {
            super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase _db) { //solo quando il db viene creato, creiamo la tabella
            _db.execSQL(FunnyTable.FUNNY_TABLE_CREATE);
            _db.execSQL(CongrTable.CONGR_TABLE_CREATE);
    }

    @Override
    public void onUpgrade(SQLiteDatabase _db, int oldVersion, int newVersion) {


    }

}
 
